package view;

import java.awt.Color;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

public class CusAddPanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private JLabel lblAddress_AddCus;
	private JLabel lblID_AddCus;
	private JLabel lblPersionalID_AddCus;
	private JLabel lblName_AddCus;
	private JLabel lblPhone_AddCus;
	private JTextField emView_txtName;
	private JTextField emView_txtName1;
	private JTextField emView_txtName2;
	private JTextField emView_txtName3;
	private JTextField emView_txtName4;
	private JButton btnCancel_AddCus;
	private JButton btnAdd_AddCus;
	private JPanel panel_AddCus;

	public CusAddPanel() {
		initComponents();
	}

	private void initComponents() {

		panel_AddCus = new JPanel();
		lblPhone_AddCus = new JLabel();
		lblName_AddCus = new JLabel();
		lblPersionalID_AddCus = new JLabel();
		lblID_AddCus = new JLabel();
		lblAddress_AddCus = new JLabel();
		emView_txtName = new JTextField();
		emView_txtName1 = new JTextField();
		emView_txtName2 = new JTextField();
		emView_txtName3 = new JTextField();
		emView_txtName4 = new JTextField();
		btnAdd_AddCus = new JButton();
		btnCancel_AddCus = new JButton();

		setBackground(new Color(255, 255, 255));
		setLayout(null);

		panel_AddCus.setBackground(new Color(255, 255, 255));
		panel_AddCus.setBorder(BorderFactory.createTitledBorder(null,
				"Information", TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new Font("Calibri", 1, 12)));
		panel_AddCus.setLayout(null);

		lblPhone_AddCus.setFont(new Font("Calibri", 0, 16));
		lblPhone_AddCus.setText("Phone:");
		panel_AddCus.add(lblPhone_AddCus);
		lblPhone_AddCus.setBounds(40, 90, 50, 20);

		lblName_AddCus.setFont(new Font("Calibri", 0, 16));
		lblName_AddCus.setText("Name:");
		panel_AddCus.add(lblName_AddCus);
		lblName_AddCus.setBounds(40, 60, 50, 20);

		lblPersionalID_AddCus.setFont(new Font("Calibri", 0, 16));
		lblPersionalID_AddCus.setText("Persional ID:");
		panel_AddCus.add(lblPersionalID_AddCus);
		lblPersionalID_AddCus.setBounds(350, 60, 90, 30);

		lblID_AddCus.setFont(new Font("Calibri", 0, 16));
		lblID_AddCus.setText("ID:");
		panel_AddCus.add(lblID_AddCus);
		lblID_AddCus.setBounds(40, 30, 50, 20);

		lblAddress_AddCus.setFont(new Font("Calibri", 0, 16));
		lblAddress_AddCus.setText("Address:");
		panel_AddCus.add(lblAddress_AddCus);
		lblAddress_AddCus.setBounds(350, 30, 60, 30);
		panel_AddCus.add(emView_txtName);
		emView_txtName.setBounds(440, 60, 170, 20);
		panel_AddCus.add(emView_txtName1);
		emView_txtName1.setBounds(120, 30, 170, 20);
		panel_AddCus.add(emView_txtName2);
		emView_txtName2.setBounds(120, 60, 170, 20);
		panel_AddCus.add(emView_txtName3);
		emView_txtName3.setBounds(120, 90, 170, 20);
		panel_AddCus.add(emView_txtName4);
		emView_txtName4.setBounds(440, 30, 170, 20);

		add(panel_AddCus);
		panel_AddCus.setBounds(10, 10, 680, 130);

		btnAdd_AddCus.setIcon(new ImageIcon("icon/add.png"));
		btnAdd_AddCus.setText("Add");
		btnAdd_AddCus.setToolTipText("");
		add(btnAdd_AddCus);
		btnAdd_AddCus.setBounds(240, 160, 90, 30);

		btnCancel_AddCus.setIcon(new ImageIcon("icon/cancle.png"));
		btnCancel_AddCus.setText("Cancel");
		add(btnCancel_AddCus);
		btnCancel_AddCus.setBounds(350, 160, 90, 30);

		setSize(750, 440);
	}

}
